<?php

namespace App\Repository\Models;

use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
use Prettus\Repository\Contracts\Transformable;
use Prettus\Repository\Traits\TransformableTrait;

/**
 * Class ProductCategories.
 *
 * @package namespace App\Repository\Models;
 */
class ProductAttributes extends Model implements Transformable
{
    use TransformableTrait;
    use SoftDeletes;

    protected $table = 'product_attributes';
    
    protected $fillable = ['product_id', 'attributes','price'];

 
   protected $fieldSearchable = [
   ];

 
    public function product()
    {
        return $this->hasOne(Products::class, 'id', 'product_id');
    }

}
